module.exports = {
  apps: [{
    name: 'zr-official-website-server',
    script: 'NODE_ENV=production node ./bootstrap.js',
    watch: [ // 监听文件路径
      'src',
      'dist'
    ],
    log_file: './logs/pm2/logs.log',
    out_file: './logs/pm2/out.log',
    error_file: './logs/pm2/error.log',
    watch_delay: 1000,
    ignore_watch: ['node_modules', 'logs', 'lock', 'cache'],
  }],
}
